#pragma once
#include "afxwin.h"


#define WM_NUMCHANGE WM_USER+10


class CNumSelect : public CStatic
{
    public:
        CNumSelect(void);
        ~CNumSelect(void);

        void SetCount(int n_max);
        int  GetCurSel();
        void SetCurSel(int i);
        void SetUsed(int i, bool b_in_use = true);
        void SetUsed(bool b_in_use = true);

        afx_msg void OnPaint();
        afx_msg void OnLButtonUp(UINT nFlags, CPoint point);

    protected:
        virtual void PreSubclassWindow();

    private:

        CImageList mc_list;

        CArray<bool> mab_active;

        int mn_max_count;
        int mn_cur_select;

    public:
        DECLARE_MESSAGE_MAP()

};
